#导入requests
import requests

#准备测试数据
url = "https://www.baidu.com"

#发送http请求
response = requests.get(url)

#查看响应数据： 状态码，返回文本
print(response.status_code)  #状态码
print(response.text)





